package a.j;

import a.d.o;

import java.awt.*;
import java.awt.geom.AffineTransform;

public abstract class l
  implements hg.e_
{
  final BasicStroke a = a(1);
  final BasicStroke b = a(3);
  boolean c;
  public static boolean d;
  
  public boolean a()
  {
    return this.c;
  }
  
  public void a(boolean paramBoolean)
  {
    this.c = paramBoolean;
  }
  
  public void a(hg paramhg, Graphics2D paramGraphics2D)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (!paramhg.x) {
        return;
      }
    }
    o localo = paramhg.h();
    if ((bool2) || (localo.j() == -1.0D))
    {
      double d1 = localo.h();
      paramhg.c(paramGraphics2D, localo.d(), localo.e() - d1, localo.g(), d1);
      if (!bool1) {}
    }
    else
    {
      Graphics2D localGraphics2D = (Graphics2D)paramGraphics2D.create();
      double d2 = localo.g();
      double d3 = localo.h();
      double d4 = localo.i();
      double d5 = localo.j();
      if ((bool2) || (a())) {
        if (!bool2)
        {
          if (d5 > 0.0D)
          {
            localGraphics2D.transform(new AffineTransform(d5, -d4, d4, d5, localo.d() - d5 * d2, localo.e() + d4 * d2));
            if (bool2) {
              break label240;
            }
          }
        }
        else {
          if (!bool1) {
            break label228;
          }
        }
      }
      localGraphics2D.transform(new AffineTransform(-d5, d4, -d4, -d5, localo.d() + d4 * d3, localo.e() + d5 * d3));
      label228:
      paramhg.c(localGraphics2D, 0.0D, 0.0D, d2, d3);
      label240:
      localGraphics2D.dispose();
    }
  }
  
  public void b(hg paramhg, Graphics2D paramGraphics2D, double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    boolean bool = ld.E;
    Color localColor = paramGraphics2D.getColor();
    Paint localPaint = paramGraphics2D.getPaint();
    Stroke localStroke = paramGraphics2D.getStroke();
    Rectangle2D.Double localDouble;
    if (!bool)
    {
      if (b(paramhg, paramGraphics2D))
      {
        localDouble = hb.a().k;
        localDouble.setFrame(paramDouble1, paramDouble2, paramDouble3, paramDouble4);
        paramGraphics2D.fill(localDouble);
      }
      if (bool) {}
    }
    else if (c(paramhg, paramGraphics2D))
    {
      localDouble = hb.a().k;
      localDouble.setFrame(paramDouble1, paramDouble2, paramDouble3, paramDouble4);
      paramGraphics2D.draw(localDouble);
    }
    c(paramhg, paramGraphics2D, paramDouble1, paramDouble2, paramDouble3, paramDouble4);
    paramGraphics2D.setStroke(localStroke);
    paramGraphics2D.setPaint(localPaint);
    paramGraphics2D.setColor(localColor);
  }
  
  protected void c(hg paramhg, Graphics2D paramGraphics2D, double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    if (d(paramhg, paramGraphics2D))
    {
      Rectangle2D.Double localDouble = hb.a().k;
      localDouble.setFrame(paramDouble1 - 2.0D, paramDouble2 - 2.0D, paramDouble3 + 4.0D, paramDouble4 + 4.0D);
      paramGraphics2D.setColor(Color.BLACK);
      paramGraphics2D.setStroke(this.b);
      paramGraphics2D.draw(localDouble);
      paramGraphics2D.setStroke(this.a);
      paramGraphics2D.setColor(Color.WHITE);
      paramGraphics2D.draw(localDouble);
    }
  }
  
  protected boolean b(hg paramhg, Graphics2D paramGraphics2D)
  {
    Paint localPaint = a(paramhg, d(paramhg, paramGraphics2D));
    if (!ld.E)
    {
      if (localPaint != null) {
        paramGraphics2D.setPaint(localPaint);
      }
    }
    else {
      return true;
    }
    return false;
  }
  
  protected Paint a(hg paramhg, boolean paramBoolean)
  {
    return b(paramhg, paramBoolean);
  }
  
  protected Color b(hg paramhg, boolean paramBoolean)
  {
    return paramhg.y;
  }
  
  protected boolean c(hg paramhg, Graphics2D paramGraphics2D)
  {
    boolean bool = d(paramhg, paramGraphics2D);
    Paint localPaint = d(paramhg, bool);
    if (!ld.E)
    {
      if (localPaint != null)
      {
        paramGraphics2D.setStroke(c(paramhg, bool));
        paramGraphics2D.setPaint(localPaint);
      }
    }
    else {
      return true;
    }
    return false;
  }
  
  protected Stroke c(hg paramhg, boolean paramBoolean)
  {
    return this.a;
  }
  
  protected Paint d(hg paramhg, boolean paramBoolean)
  {
    return e(paramhg, paramBoolean);
  }
  
  protected Color e(hg paramhg, boolean paramBoolean)
  {
    return paramhg.z;
  }
  
  o a(hg paramhg, o paramo)
  {
    o localo = paramhg.h();
    if (!ld.E) {
      if (localo.j() > 0.0D) {
        return new o(localo.g() - paramo.d(), -localo.h() - paramo.e(), paramo.g(), paramo.h(), -paramo.i(), -paramo.j());
      }
    }
    return paramo;
  }
  
  private static BasicStroke a(int paramInt)
  {
    return new BasicStroke(paramInt, 2, 0, 1.6F);
  }
  
  private static boolean d(hg paramhg, Graphics2D paramGraphics2D)
  {
    return hg.a(paramhg, paramGraphics2D);
  }
  
  public static hg.e_ a(hg.e_ parame_)
  {
    l local0 = new l()
    {
      private final hg.e_ val$painter;
      
      public o b(hg paramAnonymoushg)
      {
        return a(paramAnonymoushg, this.val$painter.b(paramAnonymoushg));
      }
      
      public o a(hg paramAnonymoushg)
      {
        return a(paramAnonymoushg, this.val$painter.a(paramAnonymoushg));
      }
      
      public void b(hg paramAnonymoushg, Graphics2D paramAnonymousGraphics2D, double paramAnonymousDouble1, double paramAnonymousDouble2, double paramAnonymousDouble3, double paramAnonymousDouble4)
      {
        this.val$painter.b(paramAnonymoushg, paramAnonymousGraphics2D, paramAnonymousDouble1, paramAnonymousDouble2, paramAnonymousDouble3, paramAnonymousDouble4);
      }
      
      public void a(hg paramAnonymoushg, Graphics2D paramAnonymousGraphics2D, double paramAnonymousDouble1, double paramAnonymousDouble2, double paramAnonymousDouble3, double paramAnonymousDouble4)
      {
        this.val$painter.a(paramAnonymoushg, paramAnonymousGraphics2D, paramAnonymousDouble1, paramAnonymousDouble2, paramAnonymousDouble3, paramAnonymousDouble4);
      }
    };
    local0.a(true);
    return local0;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.l

 * JD-Core Version:    0.7.0.1

 */